/*
package com.yvan.upload;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.io.InputStream;

@RestController
public class DFSController {
    @Autowired
    private FileOperationUtils fileOperationUtils;

    @PostMapping("/upload")
    public String singleFileUpload(@RequestParam("file") MultipartFile file) throws IOException {
        String filename = file.getOriginalFilename();
        InputStream inputStream = file.getInputStream();

        return fileOperationUtils.upload(filename, inputStream);
    }

    @PostMapping("/delete")
    public String singleFileDelete(String fileUrl) {
        return fileOperationUtils.delete(fileUrl);
    }

}
*/
